package com.java2207.group1.mapper;

import com.java2207.group1.pojo.DrugStorage;
import com.java2207.group1.vo.drugstorage.DrugPieVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Lenovo 2022/7/26 12:08
 * @author Lenovo
 */
public interface DrugStorageMapper {

    List<DrugStorage> selectAllDrugByParams(Map<String, Object> params);

    int addDrug(DrugStorage drug);

    int deleteDrug(Integer id);

    int updateDrug(DrugStorage drug);

    int deleteDrugByIds(@Param("ids") String[] ids);

    List<DrugPieVo> drugPieData();

    int reduceDrug(DrugStorage drug);

    List<DrugStorage> selectAllDrug();

}
